/*eslint-disable */
import request from "@/utils/request";

export function licenseList(data) {
  return request({
    url: `license/licenseList?pageNumber=${data.pageNumber}&pagesize=${data.pagesize}`,
    method: "get",
  });
}

export function addLincese(data) {
  return request({
    url: `/license/addLicense`,
    method: "post",
    data: data,
  });
}

export function deleteLicense(id) {
  return request({
    url: `/license/deleteLicense?id=${id}`,
    method: "post",
  });
}

// 
export function getInfo(id) {
  return request({
    url: `/license/getLicenseInfo?id=${id}`,
    method: "get",
   
  });
}

export function application(data) {
  return request({
    url: `/license/application`,
    method: "post",
    data: data,
  });
}
export function searchLicense(data) {
  return request({
    url: "license/search",
    data: data,
    method: "post",
  });
}